<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html">
<h:body>
<ui:composition template="./../../templates.xhtml">
<!--
<ui:define name="toformRenderedp">
top
</ui:define>
-->
<!--
<ui:define name="left">
left
</ui:define>
-->
<ui:define name="content">
<h:form rendered="#{!loginBean.logeado}">
  <center><h1>Login</h1></center>
  <h:panelGrid columns="2">
     <h:outputText value="#{mensajes['login.username']}"  ></h:outputText>
     <h:inputText value="#{loginBean.username}"  required="true" />
     <h:outputText value="#{mensajes['login.password']}"  ></h:outputText>
     <h:inputSecret value="#{loginBean.password}"  required="true" />
     <h:commandLink action="#{loginBean.VerificarLogin}" value="#{mensajes['boton.login']}"  />
   </h:panelGrid>
   <h:messages/>
</h:form>
<h:form rendered="#{loginBean.logeado}">
   <h:panelGrid columns="2">
      <h:outputText value="#{mensajes['login.username']}"/>
      <h:outputText value="#{loginBean.nombreUsuarioLogeado}"/>
      <h:link outcome = "/index.xhtml" value="#{mensajes['boton.regresar']}" />
   </h:panelGrid>
</h:form>
</ui:define>
 </ui:composition>
</h:body>
</html>
